package cn.fighter3.service.impl;

import cn.fighter3.entity.node.Cnbook;
import cn.fighter3.service.node.CnbookDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CnbookService {
    @Autowired
    CnbookDao cnbookDao;


    public List<Cnbook> findAll(){
        //Iterable<Person> all = personDao.findAll();
        return (List<Cnbook>) cnbookDao.findAll();
    }

//    //public Cnbook findByTitle(String title){
//        return cnbookDao.findByTitle(title);
//    }

}
